package javatest;

import com.google.common.collect.Lists;
import org.apache.commons.lang.math.NumberUtils;

import java.util.Date;
import java.util.List;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

/**
 * Created by IntelliJ IDEA.
 * User: liuliwei
 * Date: 2017-06-02
 * Time: 下午1:39
 * Description: ${description}
 * 😀
 */
public class Test {
        static int i=0;
    public static void main(String[] args) {
            List<Date> list = Lists.newArrayList();
        System.out.println(NumberUtils.toInt(null));
            Executor executor = Executors.newFixedThreadPool(10);
        while (i++<10) {
            executor.execute(new Runnable() {
                public void run() {
                    while (true) {
                        System.out.println("threadName:"+Thread.currentThread().getName());
                    }
                }
            });
        }

    }

    public static void dod(){
//        System.out.println(i++);
        System.out.println(i++);
    }

}
